*********************************************************
*********************************************************
*                  RELIGIOSITY PROJECT					*
*					  MASTER DOFILE                     *		
***      		Last modified in Oct 2023        	 ****
*********************************************************
*********************************************************


****************
**# Initialize
****************
	clear all
	clear matrix
	set more off
	set maxvar 32000
	set varabbrev on



*********************
**# Set Directories	
*********************

	* Please set dir to your local location
	if "`c(username)'" == "your_user_name" {
	global dir				"your_local_directory/religiosity_replication"
	}

	* Make a folder containing the tables and figures produced by the replication do files
	cap mkdir "$dir/tables_and_figures"

	global data    		 	=   "$dir/data"
	global do      			=   "$dir/do"
	global tables  		 	=   "$dir/tables_and_figures"



****************** 
**# Run do Files
******************

	* Run the Main Analysis
	do "$do/Religiosity_Analysis.do"
	
	* Run the Experts Survey Descriptive Analysis
	do "$do/Experts_Descriptives.do"	
	
	
	
**********
**# Exit
**********
	clear all
	exit
